package cn.cmdr.service;

import cn.cmdr.pojo.Staff;
import cn.cmdr.vo.PageVo;
import cn.cmdr.vo.StaffVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface StaffService extends IService<Staff> {

    Staff getStaffCode(String staffCode);
    List<Staff> getStaffList();
    PageVo getPageStaffList(Integer pageNo, Integer pageSize, StaffVo staffVo);
    //添加
    void add(Staff staff);
    //修改
    void update(Staff staff);
    //删除
    void deleteById(Integer id);

    Staff getStaffById(Integer id);

    Staff getStaffByCode(String staffCode);

    List<Staff> getById(Integer roleId);
}
